<?php

class Ext_Application_Resource_Paginator extends Zend_Application_Resource_ResourceAbstract
{
    protected $_scrollingStyle;

    protected $_partialView;

    public function init()
    {
        $options = $this->getOptions();

        $this->_scrollingStyle = "all";
        if ( isset( $options['scrolling_style'] ) ) {
            $this->_scrollingStyle = $options['scrolling_style'];
        }
        Zend_Paginator::setDefaultScrollingStyle( $this->_scrollingStyle );

        $this->_partialView = 'paginator/search_paginator_control.phtml';
        if ( isset( $options['partial_view'] ) ) {
            $this->_partialView = $options['partial_view'];
        }
        Zend_View_Helper_PaginationControl::setDefaultViewPartial( $this->_partialView );
        return $this;
    }

    public function getScrollingStyle() {
        return $this->_scrollingStyle;
    }

    public function getPartialView() {
        return $this->_partialView;
    }

}
